package com.cysyz.mylib.dao.engine;

import java.util.Collection;
import java.util.List;

public interface Query {
    @SuppressWarnings("rawtypes")
		public List getResultList();
		
		public String getQueryString();
		
		public void setCacheAble(boolean isCacheAble);
		
		public Query setFirstResult(int firstResult);

		public Query setMaxResults(int maxresult);

		public void setParameter(Integer placeHolder, Object value);
		
		public void setParameter(String placeHolder, Object value);
		
		public Object getSingleResult();
		
		public int execute();

		public void setParameterList(String string, Collection<?> param);

		public void setParameterList(String i, Object[] param);
		
	}